import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    name: 'home',
    redirect:'/me',
    children:[
      {path: '/login', component: () => import('../views/LoginView')},
      {path: '/me', component: () => import('../views/me')},
      {path: '/bus', component: () => import('../views/businessView.vue')},
      {path: '/Customer', component: () => import('../views/Customer.vue')},
    ]
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
